<script language="JavaScript" type="text/javascript">
<!--
function chkFormular() {
	if(!validbbcode(document.getElementById('message').value)){
		return false;
	}
	if(!validbbcode(document.getElementById('message').value)){
		return false;
	}
}
-->
</script>
<form id="post" name="post" method="post" action="guestbook.php" onsubmit="return chkFormular();">
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="$border">
  <tr>
    <td class="title" align="center" bgcolor="$bghead">%guestbook_comment%</td>
  </tr>
  <tr><td bgcolor="$pagebg"></td></tr>
  <tr>
    <td bgcolor="$bg1">
    <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
      <tr>
        <td colspan="2">$addbbcode</td>
      </tr>
		<tr>
        <td colspan="2" width="100"><b>%comment%:</b></td>
      </tr>
      <tr>
        <td colspan="2"><textarea name="message" id="message" cols="30" rows="5"  style="width:99%;">$admincomment</textarea></td>
      </tr>
      <tr>
        <td><small><b>%options%:</b> &#8226; %html% &#8226; %bbcode% &#8226; %smilies%</small>
        <input name="guestbookID" type="hidden" value="$_GET[guestbookID]" /></td>
        <td align="right"><input name="savecomment" type="submit" value="%update_comment%" /></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</form>